/*
 * LinearMovement.java
 *
 * Created on 27. April 2007, 20:41
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package de.tor.obj.action.impl;

import de.tor.obj.action.*;

/**
 *
 * @author Charon
 */
public class LinearMovement extends AbstractMovement{
    
    /** Creates a new instance of LinearMovement */
    public LinearMovement(double pStartX, double pStartY, double pVertSpeed ) {
        setXPos(pStartX);
        setYPos(pStartY);
        setVerticalSpeed(pVertSpeed);
    }

    public void update(long elapsedTime) {
        setYPos(getYPos() + getVerticalSpeed() * elapsedTime);
    }
    
}
